import request from '@/utils/request'

// 查询生产制作单列表
export function listManufactureorder(query) {
  return request({
    url: '/pro/manufactureorder/list',
    method: 'get',
    params: query
  })
}

// 查询生产制作单详细
export function getManufactureorder(moId) {
  return request({
    url: '/pro/manufactureorder/' + moId,
    method: 'get'
  })
}

// 新增生产制作单
export function addManufactureorder(data) {
  return request({
    url: '/pro/manufactureorder',
    method: 'post',
    data: data
  })
}

// 修改生产制作单
export function updateManufactureorder(data) {
  return request({
    url: '/pro/manufactureorder',
    method: 'put',
    data: data
  })
}

// 删除生产制作单
export function delManufactureorder(moId) {
  return request({
    url: '/pro/manufactureorder/' + moId,
    method: 'delete'
  })
}
